var msg = ["userName", "email", "qq", "tel"];
var msgObj = new Object();
var stdin = process.stdin;
var index = 0;
var key = msg[index];
console.log(key + ":");

stdin.on("data", function(chunk){
    var str  = chunk.toString("utf-8");
    key = msg[index];
    msgObj[key] = str;
    index++;
    if(index == 4){
        console.log(msgObj);
        process.exit();
    }
    console.log(msg[index] + ":");
})
